-- GENERATED SPELL FOR [Stormscale Wave Rider] --


function spell0_2179(pUnit, Event) --@Aqua Jet,Self--
pUnit:FullCastSpellOnTarget(13586,pUnit)
pUnit:RegisterEvent('Sorts_2179', 607, 1)
end

function Sorts_2179(pUnit, Event)
local choix_sorts_2179 = math.random(0, 0)
if choix_sorts_2179 == 0 then
pUnit:RegisterEvent('spell0_2179', 1, 1)
end
end

function mob2179_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2179', math.random(1500, 3000), 1)
end

function mob2179_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2179_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2179_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2179, 1, 'mob2179_Action')
RegisterUnitEvent(2179, 2, 'mob2179_Leave')
RegisterUnitEvent(2179, 3, 'mob2179_Kill')
RegisterUnitEvent(2179, 4, 'mob2179_Die')
